#example7_17.py
#coding=utf-8
import matplotlib.pyplot as plt
import pandas as pd

#读取鸢尾花数据
df = pd.read_csv('iris.data')
df.columns=["sepalLength","sepalWidth","petalLength","petalWidth","class"]

#分别用子图来显示各属性
df.iloc[:,:4].plot(subplots=True, layout=(2, 2), 
                    figsize=(8, 6), sharex=False)
plt.show()

